grid = [[1, 0, 1], [0, 0, 0], [1, 0, 1]]

import numpy

print(numpy.array(grid))
